package JAVA基础.dowhile语句;

public class text {
    public static void main(String[] args) {
//        do...while循环
        int count = 1;
        boolean isok = false;
        do {
            System.out.println("已经学习了" + count);
            if (count >= 3) {
                isok = true;
            }
            count++;
        } while (!isok);//这里一定不能是括号里的为真不然会死循环
    }
}
